<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html><head>
        <link rel="stylesheet" type="text/css" href="apidocs.css"/>
        <title>API docs for &ldquo;sympy.core.function&rdquo;</title>
        </head>
        <body><h1 class="module">Module s.c.function</h1><span id="part">Part of <a href="sympy.core.html">sympy.core</a></span><div class="toplevel"><pre>There are two types of functions:
1) defined function like exp or sin that has a name and body
   (in the sense that function can be evaluated).
    e = exp
2) undefined function with a name but no body. Undefined
  functions can be defined using a Function class as follows:
    f = Function('f')
  (the result will be Function instance)
3) this isn't implemented yet: anonymous function or lambda function that has
no name but has body with dummy variables. An anonymous function
   object creation examples:
    f = Lambda(x, exp(x)*x)
    f = Lambda(exp(x)*x)  # free symbols in the expression define the number of arguments
    f = exp * Lambda(x,x)
4) isn't implemented yet: composition of functions, like (sin+cos)(x), this
works in sympycore, but needs to be ported back to SymPy.


Example:
    >>> from sympy import *
    >>> f = Function("f")
    >>> x = Symbol("x")
    >>> f(x)
    f(x)
    >>> f(x).func
    <class 'sympy.core.function.f'>
    >>> f(x).args
    (x,)</pre></div><table class="children"><tr class="class"><td>Class</td><td><a href="sympy.core.function.FunctionClass.html">FunctionClass</a></td><td><div><p>Base class for function classes. FunctionClass is a subclass of 
type.</p>
</div></td></tr><tr class="class"><td>Class</td><td><a href="sympy.core.function.Function.html">Function</a></td><td><div><p>Base class for applied functions.</p>
</div></td></tr><tr class="class"><td>Class</td><td><a href="sympy.core.function.WildFunction.html">WildFunction</a></td><td><div><p>WildFunction() matches any expression but another WildFunction()</p>
</div></td></tr><tr class="class"><td>Class</td><td><a href="sympy.core.function.Derivative.html">Derivative</a></td><td><div><p>Carries out differentation of the given expression with respect to 
symbols.</p>
</div></td></tr><tr class="class"><td>Class</td><td><a href="sympy.core.function.Lambda.html">Lambda</a></td><td><div><p>Lambda(x, expr) represents a lambda function similar to Python's</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.core.function.diff">diff</a></td><td><div><p>Differentiate f with respect to x</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.core.function.expand">expand</a></td><td><div><p>Expand an expression using hints.</p>
</div></td></tr></table>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.core.function.diff">diff(f, x, times=1, evaluate=True):</a></div>
            <div class="functionBody"><div><p>Differentiate f with respect to x</p>
<p>It's just a wrapper to unify .diff() and the Derivative class, it's 
interface is similar to that of integrate()</p>
<p>see 
http://documents.wolfram.com/v5/Built-inFunctions/AlgebraicComputation/Calculus/D.html</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.core.function.expand">expand(e, **hints):</a></div>
            <div class="functionBody"><div><p>Expand an expression using hints.</p>
<p>This is just a wrapper around Basic.expand(), see it's docstring of for 
a thourough docstring for this function. In isympy you can just type 
Basic.expand? and enter.</p>
</div></div>
            </div></body>
        